<?php echo $this->render('layouts/__header.phtml'); ?>
<?php echo $this->render('layouts/__nav.phtml'); ?>
    <h1>User Profile</h1>    
    <br />
    <?php echo $this->render('layouts/__info.phtml'); ?>
    <h3>Basic Info:</h3>    
    <form action="/user/profile" method="post" id="profile" name="profile">
    <div style="padding:10px;">
    <input type="hidden" id="act" name="act" value="info"/>
	<table class="normaltable lefttable">
		<tr onMouseOver="this.style.backgroundColor='#F7F9F9';" onMouseOut="this.style.backgroundColor='#FFFFFF'">		
		<td>Name</td>
		<td><?php echo $_SESSION['Zend_Auth']['storage'];?></td>
		</tr>
		<tr onMouseOver="this.style.backgroundColor='#F7F9F9';" onMouseOut="this.style.backgroundColor='#FFFFFF'">	
		<td>Email</td>
		<td><?php echo $this->formText('email', $this->userInfo['email']) ?></td>
		</tr>
		<tr onMouseOver="this.style.backgroundColor='#F7F9F9';" onMouseOut="this.style.backgroundColor='#FFFFFF'">	
		<td>Phone</td>
		<td><?php echo $this->formText('phone', $this->userInfo['phone']) ?></td>
		</tr>
		<tr onMouseOver="this.style.backgroundColor='#F7F9F9';" onMouseOut="this.style.backgroundColor='#FFFFFF'">	
		<td>Role</td>
		<td><?php echo $_SESSION['Zend_Auth']['role'];?></td>
		</tr>
		<tr>	
		<td colspan="2" style="text-align:right"><input id="chgInfo" type="button" value="Change it" /></td>
		</tr>
	</table>
	</div>
    <br />    
    <a href="#" id="pwdToggle">Click here to change your password.</a>
    <div id="changePwd">
    <br />
    <h3>Change Password:</h3>
    <div style="padding:10px;">        
	<table class="normaltable lefttable">
		<tr onMouseOver="this.style.backgroundColor='#F7F9F9';" onMouseOut="this.style.backgroundColor='#FFFFFF'">		
		<td>Current Password</td>
		<td><input type="password" name="currentPassword" id="currentPassword" /></td>
		</tr>
		<tr onMouseOver="this.style.backgroundColor='#F7F9F9';" onMouseOut="this.style.backgroundColor='#FFFFFF'">	
		<td>New Password</td>
		<td><input type="password" name="newPassword" id="newPassword" /></td>
		</tr>
		<tr>	
		<td colspan="2" style="text-align:right"><input id="chgPwd" type="button" value="Change it" /></td>
		</tr>
	</table>
	</div>
	</div>
    </form>
<?php echo $this->render('layouts/__footer.phtml'); ?>